package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiNewsMapper;
import com.platform.entity.NewsVo;


@Service
public class ApiNewsService {

    @Autowired
    private ApiNewsMapper newsMapper;


    public NewsVo queryObject(Integer id) {
        return newsMapper.queryObject(id);
    }


    public List<NewsVo> queryList(Map<String, Object> map) {
        return newsMapper.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return newsMapper.queryTotal(map);
    }


    public int save(NewsVo news) {
        return newsMapper.save(news);
    }


    public int update(NewsVo news) {
        return newsMapper.update(news);
    }


    public int delete(Integer id) {
        return newsMapper.delete(id);
    }


    public int deleteBatch(Integer[] ids) {
        return newsMapper.deleteBatch(ids);
    }
}
